package lib

type User struct {
	Id       int64  `json:"id"`
	Username string `json:"username"`
	Photo    string `json:"photo"`
	Qq       string `json:"qq"`
	Birthday string `json:"birthday"`
	Password string
	Email    string `json:"email"`
	Gender   int    `json:"gender"`
}

type UserBrief struct {
	Id       int64  `json:"id"`
	Username string `json:"username"`
	Photo    string `json:"photo"`
	Gender   int    `json:"gender"`
}

type LoginRequest struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type LoginResponse struct {
	StatusMsg  string `json:"status_msg"`
	StatusCode int32  `json:"status_code"`
	User       User   `json:"user"`
}

type RegisterRequest struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type RegisterResponse struct {
	StatusCode int32  `json:"status_code"` //0: server fault, 1: username fault, 2: success
	StatusMsg  string `json:"status_msg"`
	User       User   `json:"user"`
}
